﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SensorMash
{
    public class SensorMashVars
    {
        public Dictionary<string, object> varNameObjectMap = new Dictionary<string, object>();

        public TypeObject getTypeObject(string varName)
        {
            TypeObject to = new TypeObject();
            to._object = varNameObjectMap[varName];
            to._type = to._object.GetType();
            return to;
        }
    }

    public class TypeObject
    {
        public Type _type;
        public object _object;
    }

    public class SensorMashChangedEventArgs : EventArgs
    {
        public SensorMashVars sensorState;

        public SensorMashChangedEventArgs(SensorMashVars smv)
        {
            sensorState = smv;
        }
    }
}
